﻿using System;
using System.Linq;
using System.Threading.Tasks;

namespace IceDog.SmallProject.SnowFlake
{
    class Program
    {
        static void Main(string[] args)
        {
            //Gen10Guid();
            Gen10SnowFlakeId();
        }

        static void Gen10Guid()
        {
            for (int i = 0; i < 10; i++)
            {
                Console.WriteLine($"Guid {i} :"+GuidGen.N);
            }
        }

        static void Gen10SnowFlakeId()
        {
            var sf = Snowflake.Instance();
            sf.Init(5, 20);
            for (int i = 0; i < 10; i++)
            {
                Console.WriteLine($"SW ID {i} :" + sf.NextId());
            }
        }
    }
}
